package com.easemob.chat;

import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
import com.easemob.util.EMLog;
import java.io.File;

public class VideoMessageBody extends FileMessageBody
  implements Parcelable
{
  int length = 0;
  String thumbnailUrl;
  String localThumb;
  String thumbnailSecret = null;
  long file_length = 0L;
  public static final Parcelable.Creator<VideoMessageBody> CREATOR = new Parcelable.Creator()
  {
    public VideoMessageBody[] newArray(int paramAnonymousInt)
    {
      return new VideoMessageBody[paramAnonymousInt];
    }

    public VideoMessageBody createFromParcel(Parcel paramAnonymousParcel)
    {
      return new VideoMessageBody(paramAnonymousParcel, null);
    }
  };

  public VideoMessageBody()
  {
  }

  public VideoMessageBody(File paramFile, String paramString, int paramInt, long paramLong)
  {
    this.localUrl = paramFile.getAbsolutePath();
    this.fileName = paramFile.getName();
    this.localThumb = paramString;
    this.length = paramInt;
    this.file_length = paramLong;
    EMLog.d("videomsg", "create video,message body for:" + paramFile.getAbsolutePath());
  }

  VideoMessageBody(String paramString1, String paramString2, String paramString3, int paramInt)
  {
    this.fileName = paramString1;
    this.remoteUrl = paramString2;
    this.thumbnailUrl = paramString3;
    this.length = paramInt;
  }

  public String getThumbnailUrl()
  {
    return this.thumbnailUrl;
  }

  public void setThumbnailUrl(String paramString)
  {
    this.thumbnailUrl = paramString;
  }

  public long getVideoFileLength()
  {
    return this.file_length;
  }

  public void setVideoFileLength(long paramLong)
  {
    this.file_length = paramLong;
  }

  public void setLocalThumb(String paramString)
  {
    this.localThumb = paramString;
  }

  public String getLocalThumb()
  {
    return this.localThumb;
  }

  public int getLength()
  {
    return this.length;
  }

  public String toString()
  {
    return "video:" + this.fileName + ",localUrl:" + this.localUrl + ",remoteUrl:" + this.remoteUrl + ",thumbnailUrl:" + this.thumbnailUrl + ",length:" + this.length;
  }

  public int describeContents()
  {
    return 0;
  }

  public void writeToParcel(Parcel paramParcel, int paramInt)
  {
    paramParcel.writeString(this.fileName);
    paramParcel.writeString(this.localUrl);
    paramParcel.writeString(this.remoteUrl);
    paramParcel.writeString(this.thumbnailUrl);
    paramParcel.writeString(this.localThumb);
    paramParcel.writeInt(this.length);
    paramParcel.writeLong(this.file_length);
  }

  private VideoMessageBody(Parcel paramParcel)
  {
    this.fileName = paramParcel.readString();
    this.localUrl = paramParcel.readString();
    this.localThumb = paramParcel.readString();
    this.remoteUrl = paramParcel.readString();
    this.thumbnailUrl = paramParcel.readString();
    this.length = paramParcel.readInt();
    this.file_length = paramParcel.readLong();
  }

  public void setThumbnailSecret(String paramString)
  {
    this.thumbnailSecret = paramString;
  }

  public String getThumbnailSecret()
  {
    return this.thumbnailSecret;
  }
}

/* Location:           D:\hygieia\userclient\common\libs\easemobchat_2.1.8.jar
 * Qualified Name:     com.easemob.chat.VideoMessageBody
 * JD-Core Version:    0.6.1
 */